package com.yongoe.ecy.thirdNode.service;

import com.yongoe.ecy.thirdNode.entity.ThirdNode;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * 三级节点
 *
 * @author monad
 * @since 2024/03/10
 */
public interface ThirdNodeService extends IService<ThirdNode> {

    Page<ThirdNode> getThirdNodeByPage(Page<ThirdNode> page, ThirdNode thirdNode);

    // 新增三级节点
    Long addThirdNode(ThirdNode thirdNode);

    // 修改三级节点
    void updateThirdNode(ThirdNode thirdNode);

    // 删除三级节点(neo4j)
    void deleteThirdNodes(Long[] ids);

    // 删除三级节点(mysql)
    void deleteByIds(Long[] ids);

    // 删除全部三级节点(mysql)
    void removeAll();
}
